Adwaita: image-button sizing fix
authorLapo Calamandrei <calamandrei@gmail.com>
Sun, 14 Feb 2016 20:06:38 +0000 (21:06 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Sun, 14 Feb 2016 20:07:11 +0000 (21:07 +0100)
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 595124bd1e4c4448cc89059af7d027c28a95681c..25c59e83c4281670230f31f0a9bb3a3e0a6432c1 100644 (file)
@@ -451,6 +451,12 @@ button {
       &:checked { @include button(insensitive-active); }
     }
 
+    &.image-button {
+      min-width: 32px;
+      padding-left: 0;
+      padding-right: 0;
+    }
+
     &.text-button {
       padding-left: 16px;
       padding-right: 16px;
index 5ffd77518d1eea5a4893f167504d014977ff1b7d..8b7417ba76dc339643cd134d5ce77242325b7cee 100644 (file)
@@ -490,6 +490,11 @@ notebook > header > tabs > arrow, headerbar button.titlebutton,
       border-color: #1c1f1f;
       background-image: linear-gradient(to bottom, #313434, #333636);
       box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0); }
+  notebook > header > tabs > arrow.image-button, headerbar button.image-button.titlebutton,
+  .titlebar button.image-button.titlebutton, button.image-button {
+    min-width: 32px;
+    padding-left: 0;
+    padding-right: 0; }
   notebook > header > tabs > arrow.text-button, headerbar button.text-button.titlebutton,
   .titlebar button.text-button.titlebutton, button.text-button {
     padding-left: 16px;
index f82592ba108a4bc77bd6cd59a26deb801b902cad..c8ff8f3fac243d226d5ad55d563541bfe8d2c650 100644 (file)
@@ -490,6 +490,11 @@ notebook > header > tabs > arrow, headerbar button.titlebutton,
       border-color: #9d9d99;
       background-image: linear-gradient(to bottom, #e9e9e8, #f1f1f1);
       box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(255, 255, 255, 0); }
+  notebook > header > tabs > arrow.image-button, headerbar button.image-button.titlebutton,
+  .titlebar button.image-button.titlebutton, button.image-button {
+    min-width: 32px;
+    padding-left: 0;
+    padding-right: 0; }
   notebook > header > tabs > arrow.text-button, headerbar button.text-button.titlebutton,
   .titlebar button.text-button.titlebutton, button.text-button {
     padding-left: 16px;